package com.jiesone.logger.distributecleaning.entity;
/*
 *@ClassName RequestCause
 *@Description TODO  根因分析 业务系统上传数据封装实体类
 *@Author tangsixiang@163.com
 *@Date 2022/2/17 18:02
 *@Version 1.0
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.NonNull;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@ApiModel("根因分析数据上报数据")
public class RequestCause {

    /**
     * 来源信息
     */
    @ApiModelProperty(value = "日志采集数据编码")
    private  String  sourceCode;
    //应用名称
    @ApiModelProperty(value = "采集编码名称",allowEmptyValue = true)
        @NonNull
         private String   sourceName;
         //日志信息
         @ApiModelProperty(value = "日志信息详细信息",allowEmptyValue = true)
         @NonNull
         private  String  loggerMes;
         //根因信息
         @ApiModelProperty(value = "根因详细报告信息" )
         @NonNull
         private  String  causeMes;
            //
            @ApiModelProperty(value = "事件时间产生时间" ,example = "2022-03-11 12:13:08")
            @NonNull
            @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss",iso = DateTimeFormat.ISO.DATE_TIME)
            private  String  eventTime;
         // 上报时间
         @ApiModelProperty(value = "数据上报时间" ,example = "2022-03-11 12:13:08")
         @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss",iso = DateTimeFormat.ISO.DATE_TIME)
         private Date createTime;


    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public String getLoggerMes() {
        return loggerMes;
    }

    public void setLoggerMes(String loggerMes) {
        this.loggerMes = loggerMes;
    }

    public String getCauseMes() {
        return causeMes;
    }

    public void setCauseMes(String causeMes) {
        this.causeMes = causeMes;
    }

    public String getEventTime() {
        return eventTime;
    }

    public void setEventTime(String eventTime) {
        this.eventTime = eventTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "RequestCause{" +
                "sourceCode='" + sourceCode + '\'' +
                ", sourceName='" + sourceName + '\'' +
                ", loggerMes='" + loggerMes + '\'' +
                ", causeMes='" + causeMes + '\'' +
                ", eventTime='" + eventTime + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
